export interface RouteItem {
	menuname: Array<string>
	asdefault?: boolean // 默认显示
	path?: string
	type?: boolean
	component?: string | (() => any)
	isTabMenu?: boolean
	tabTitle?: string
}

export type RoutesConfig = RouteItem[]
const config: RoutesConfig = [
	{
		menuname: ['运营中心', '客户管理', '司机管理'],
		asdefault: true,
		path: '/driver/list',
		component: '../pages/customer/driver/list/index.tsx',
	},

	{
		menuname: ['运营中心', '客户管理', '司机管理'],
		asdefault: true,
		tabTitle: '司机新增',
		type: true,
		path: '/driver/add',
		component: '../pages/customer/driver/add/index.tsx',
	},
	{
		menuname: ['运营中心', '客户管理', '司机管理'],
		asdefault: true,
		path: '/driver/edit',
		tabTitle: '司机修改',
		type: true,
		component: '../pages/customer/driver/add/index.tsx',
	},
	{
		menuname: ['运营中心', '客户管理', '司机管理'],
		asdefault: true,
		tabTitle: '司机详情',
		type: true,
		path: '/driver/detail',
		component: '../pages/customer/driver/detail/index.tsx',
	},
	{
		menuname: ['运营中心', '客户管理', '车队管理'],
		asdefault: true,
		path: '/fleet/list',
		component: '../pages/customer/fleet/list/index.tsx',
	},
	{
		menuname: ['运营中心', '客户管理', '车队管理'],
		asdefault: true,
		path: '/fleet/add',
		tabTitle: '车队新增',
		type: true,
		component: '../pages/customer/fleet/add/index.tsx',
	},
	{
		menuname: ['运营中心', '客户管理', '车队管理'],
		asdefault: true,
		path: '/fleet/edit',
		tabTitle: '车队编辑',
		type: true,
		component: '../pages/customer/fleet/add/index.tsx',
	},
	{
		menuname: ['运营中心', '客户管理', '车队管理'],
		asdefault: true,
		path: '/fleet/detail',
		tabTitle: '车队详情',
		type: true,
		component: '../pages/customer/fleet/detail/index.tsx',
	},
]

export default config
